ABSTRACT
Communication is the process of transmitting information from source to destination. The information
exchanged between sender and receiver through the proper channel. The information should not be stolen by
unauthorized parties like hackers while sending or receiving via channel. To avoid this stealing of the information
cryptography techniques are used. The key is playing prominent role in cryptography. This paper proposes a
novel method for key generation by using nearest primes. Further 2’s complement and logical operations are
used in encryption and decryption process. The final cipher text is generated by representing the intermediate
cipher in matrix form and then read by column wise.
Keywords: - 2’s complement, Ciphertext, Cryptography, Nearest prime number, Plaintext, XOR
operation.